package myenums;

public class EnumExample {

	public enum Inputs1{
		first, second, third;
	}
	
	public enum Inputs2{
		first(1), second(20), third(45);
		private final int value;

		
		// Constructor
		private Inputs2( int v){
			this.value = v;
		}
		
		public int getV(){
			return value;
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println( "Inputs1 enum values are: ");
		for (Inputs1 x : Inputs1.values())
			System.out.println(" " + x + " has value " + x.ordinal());
		
		System.out.println( "\nInputs2 enum values are: ");
		for (Inputs2 x : Inputs2.values())
			System.out.println(" " + x + " has value " + x.getV() );		
	}

}
